<!--
+----------------------------------------------------------------------
| 友得云客  - 开启房产营销新纪元
+----------------------------------------------------------------------
| Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
+----------------------------------------------------------------------
| Licensed 友得云客不是自由软件 未经允许不可移除相关版权
+----------------------------------------------------------------------
| Author: www.youdeyunke.com
+----------------------------------------------------------------------
-->
<template>
    <div v-if="post" class="post" v-cloak>
        <img class="cover" :src="post.cover + '?imageView2/2/w/400'" />
        <div class="title">{{ post.title }}</div>
        <div class="price red">
            {{ post.average_price_info.label }}{{ post.average_price_info.text }}
        </div>
    </div>
</template>

<script>
export default {
    data () {
        return {
            loading: false,
        };
    },
    props: {
        post: { type: Object, default: null },
    },

    mounted: function () { },

    computed: {},

    methods: {},
};
</script>

<style scoped>
.post {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 25px;
    margin-bottom: 20px;
    width: 200px;
}

.cover {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.title {
    color: #000;
    margin-bottom: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
}

.price {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
}

.red {
    color: red;
}
</style>